package hx.base;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import play.mvc.Controller;

/**
 * 所有Controller的基类
 *
 * @author HX<titanrain@163.com>
 */
public class BaseController extends Controller {

    protected static final Log log = LogFactory.getLog(BaseController.class);
    /*
    @Catch(Throwable.class)
    public static void handleThrowable(Throwable throwable) {
        StringWriter trace = new StringWriter();
        throwable.printStackTrace(new PrintWriter(trace));
        System.out.println(trace.toString());
        log.error("!!!!!!!!!RD忽视的Exception|Error!!!!!!!!");
        log.error(trace.toString());
        renderJSON(new ReturnData(false, "发生错误~~请联系服务树RD!", throwable.getMessage()));
    }*/
}

